export default {
    data() {
       return {
            share:{
               title: '有派生活，排队免单，快乐购物',
			   path: '/pages/index/index',
               imageUrl:'https://files.youpaish.com/share.jpg'
            },
       }
    },
    onShareAppMessage(res) { //发送给朋友
		const id = getApp().globalData.user.id || 0;
		const path = `${this.share.path}?inviter=${id}`;
		console.log('onShareAppMessage', id, path);
        return {
            title: this.share.title,
			path: path,
            imageUrl: this.share.imageUrl,
        }
    },
  //   onShareTimeline(res) {//分享到朋友圈
		// const id = getApp().globalData.user.id || 0;
		// const path = `${this.share.path}?inviter=${id}`;
  //       return {
  //           title: this.share.title,
		// 	path: path,
  //           imageUrl: this.share.imageUrl,
  //       }
  //   },
}